\ProvidesPackage{omn}
%% This defines a new language style for the listings package. 
%% Stick 
%% \usepackage{omn}
%% Into your preamble and all should work. If you really want to, try 
%% \omnbw to turn off my funky colours
%% This supports Manchester syntax

\RequirePackage{color}
\RequirePackage{listings}

\lstdefinelanguage{omn}%
{%
  comment=[s]{/*}{*/},
  morekeywords={Ontology,Namespace,Class,ObjectProperty,Domain,Range,InverseOf,%
    owl:Thing,DisjointWith,%
    Individual,SubClassOf,Annotations,EquivalentTo,SubPropertyOf},
  morendkeywords=[2]{some,or,and},
  morecomment=[l]\#,
  string=[d]"
 }[keywords,comments,strings]

\lstset{basicstyle=\tiny,keywordstyle=\color{green}\bfseries,stringstyle=\color{red},%
  ndkeywordstyle=\color{blue},%
  commentstyle=\color{red}\itshape,showstringspaces=false}
\newcommand{\omnbw}{\lstset{keywordstyle=\itshape,commentstyle=\bfseries}}


